home *** CD-ROM | disk | FTP | other *** search
/ Nautilus 1993 March / Nautilus-4-3 / Nautilus-4-3.bin / Multimedia / Feature / RlePict1.1 Folder / macstuff.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-08  |  1013 b   |  39 lines

  1. /*
  2.  * Definitions for Mac UI doodads
  3.  */
  4.  
  5. extern Ptr PanicStash;
  6.  
  7. extern char * OldFilename( char *, char *, OSType );
  8. extern char * NewFilename( char *, char * );
  9. extern WindowPtr MakeWindow( int, int, char * );
  10.  
  11. extern void ErrorAlert( char * s );
  12. extern void ToolboxError(char * msg, int num);
  13. extern void MemoryError( char * s );
  14.  
  15. extern DialogPtr InitProgress( short dlogID );
  16. extern void UpdateProgress( DialogPtr dlog, double fraction );
  17. extern void DoneProgress( DialogPtr dlog );
  18.  
  19. extern void EventLoop();
  20. extern void InitMac();
  21. extern void CreateMenus();
  22.  
  23. extern void DoFileItem( short );
  24.  
  25. #define GrayRgn (*((RgnHandle *) 0x9ee))  /* Indulge.  Have a magic cookie. */
  26.  
  27. /*
  28.  * Useful for checking results.  Redef for non-printf apps.
  29.  */
  30. #define CHECK( thing, msg ) { if (!(thing)) { ErrorAlert( msg ); return; }}
  31.  
  32. #define NIL 0L
  33.  
  34. typedef struct ImageWin {
  35.     long tag;            /* Safety */
  36.     WindowPtr win;        /* Mac Window */
  37.     GWorldPtr gw;        /* Off-screen cache for it */
  38.     char *    name;        /* Filename */
  39. } ImageWin;